<?php echo CHtml::form('','post',array('enctype'=>'multipart/form-data')); ?>
<?php echo CHtml::activeFileField($model, 'image'); ?>
<input type="hidden" name="position" value="<?php echo $position?>"/>
<?php echo CHtml::submitButton('上传'); ?>
<b>
<?php 
$imageSizeConfig = include(Yii::app()->basePath.'/config/fileUpload.php');
$sizeLimit = $imageSizeConfig['imageSize'][$position];
$widthLimit = $sizeLimit[0];
$heightLimit = $sizeLimit[1];
echo '尺寸限制: ';
echo $widthLimit?$widthLimit:'无限制';
echo ' * ';
echo $heightLimit?$heightLimit:'无限制';
?>
</b>
<div>（图片格式：jpg, gif, png）</div>
</form>